package com.sitech.ibnms.c3p.domain;

import com.sitech.ibnms.c3p.task.ActionType;
import com.sitech.ibnms.c3p.task.FailPolicy;

import java.io.Serializable;

/**
 * Created by liujhc on 7/11.
 */
public class C3pTaskNode implements Serializable {
    private String c3pTaskId;
    private int processId;
    private int activityId;
    private String name;
    private String actionId;
    private ActionType actionType;
    private String smsType;
    private String smsGroup;

    private FailPolicy failPolicy;
    private int timeLimitSeconds;

    private String emailGroup;
    public String getC3pTaskId() {
        return c3pTaskId;
    }

    public void setC3pTaskId(String c3pTaskId) {
        this.c3pTaskId = c3pTaskId;
    }

    public int getProcessId() {
        return processId;
    }

    public void setProcessId(int processId) {
        this.processId = processId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getActionId() {
        return actionId;
    }


    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    public ActionType getActionType() {
        return actionType;
    }

    public void setActionType(ActionType actionType) {
        this.actionType = actionType;
    }

    public FailPolicy getFailPolicy() {
        return failPolicy;
    }

    public void setFailPolicy(FailPolicy failPolicy) {
        this.failPolicy = failPolicy;
    }

    public int getTimeLimitSeconds() {
        return timeLimitSeconds;
    }

    public void setTimeLimitSeconds(int timeLimitSeconds) {
        this.timeLimitSeconds = timeLimitSeconds;
    }

    public String getSmsType() {
        return smsType;
    }

    public void setSmsType(String smsType) {
        this.smsType = smsType;
    }

    public String getSmsGroup() {
        return smsGroup;
    }

    public void setSmsGroup(String smsGroup) {
        this.smsGroup = smsGroup;
    }

    public String getEmailGroup() {
        return emailGroup;
    }

    public void setEmailGroup(String emailGroup) {
        this.emailGroup = emailGroup;
    }

    @Override
    public String toString() {
        return "C3pTaskNode{" +
                "c3pTaskId='" + c3pTaskId + '\'' +
                ", processId=" + processId +
                ", activityId=" + activityId +
                ", name='" + name + '\'' +
                ", actionId='" + actionId + '\'' +
                ", actionType=" + actionType +
                ", failPolicy=" + failPolicy +
                ", timeLimitSeconds=" + timeLimitSeconds +
                ", smsType="+smsType+
                ", smsGroup"+smsGroup+
                ", emailGroup='" + emailGroup + '\'' +
                '}';
    }
}